<template>
  <div class="shopdesc-box ">
    <h3>{{list.title}}</h3>
    <div v-html="list.content"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      id: this.$route.params.id,
      list: []
    };
  },
  created() {
    this.$http.get("api/goods/getdesc/" + this.id).then(res => {
      this.list = res.body.message[0];
    });
  }
};
</script>
<style lang="scss">
.shopdesc-box {
  h3 {
    font-size: 14px;
    text-align: center;
  }
  img {
    width: 100%;
  }
}
</style>